x11: Initialize GL at startup
authorBenjamin Otte <otte@redhat.com>
Sun, 6 Jun 2021 15:07:05 +0000 (17:07 +0200)
committerBenjamin Otte <otte@redhat.com>
Thu, 22 Jul 2021 14:06:05 +0000 (16:06 +0200)
commit0fce30070f84c0cfa8daf87634bba39379def23b
treeaad0873c7e6238c818fc1e6a208545e9095adf5b
parent8bfe82f686a2f259900a033e54dd06c8a14cd1d9
x11: Initialize GL at startup

We need to initialize GL to select the Visual we are going to use for
all our Windows.

As the Visual needs to be known before we know if we are even gonna use
GL later, we can't avoid initializing it.

Note that this previously happened, too. It was just hidden behind the
GdkScreen initialization.
gdk/x11/gdkdisplay-x11.c
gdk/x11/gdkglcontext-x11.c
gdk/x11/gdkglcontext-x11.h